package com.blb.zycommunity.service.impl;

import com.blb.zycommunity.entity.SysMenu;
import com.blb.zycommunity.mapper.SysMenuMapper;
import com.blb.zycommunity.service.ISysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单权限表 服务实现类
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {

    @Resource
    private SysMenuMapper sysMenuMapper;

    /**
     * 查询一级菜单
     * @return
     */
    @Override
    public List<SysMenu> selectSysMenuWithChild(String userName) {
        return sysMenuMapper.selectSysMenuWithChild(userName);
    }
}
